package at.fhooe.pandora.game;

import at.fhooe.engine.pandora.Game;
import at.fhooe.pandora.states.MenuState;
import at.fhooe.pandora.states.PlayState;

public class Pandora {

	public static final String HUD_TIMER = "Hud Timer";
	
	public static void main(String[] args) throws InterruptedException {
		System.out.println("Pandora v1.0\n");
		
		System.out.println("Keyboard Layout:");
		System.out.println("Arrow Keys - Move");
		System.out.println("Space Key - Shoot");
		System.out.println("P Keys - Pause");
		System.out.println("Esc Keys - Return to Menu/Exit");
		
		Game.getInstance().startGame(800, 600, 60, false);
		Game.getInstance().displayFPSOn();
		
		PlayState playState = new PlayState();
		MenuState menuState = new MenuState();
		Game.getInstance().getStateManager().addState(playState);
		Game.getInstance().getStateManager().addState(menuState);
		Game.getInstance().getStateManager().switchToState(menuState.getName());
		
		while(true) {
			Game.getInstance().update();
		}
	}
}
